'use strict';

function get_integer_interval(number_a, number_b) {
  let collection=[];
  if (number_a==number_b&&number_a%2==1)
    {
      collection.push(number_a);
    }
  if(number_a==number_b&&number_a%2!=1)
    {collection=[];}
  if(number_a<number_b)
    {
      for( let i=number_a;i<=number_b;i++)
        {
          collection.push(i);
        }
    }
    if(number_a>number_b)
      {
   
        for( let i=number_a;i>=number_b;i--)
          {

            collection.push(i);
          }
      }
      return collection;
}
 
module.exports = get_integer_interval;

